# -*- coding: utf-8 -*-
# @Time    : 2021/4/16 20:12
# @Author  : Chen
# @Email   : 2356458272@qq.com
# @File    : 统计字符串中每个单词出现的次数.py
# @Software: PyCharm
a = input("请输入：")
b = {}
for i in a:
    if i in b:
        b[i] += 1
    else:
        b[i] = 1
for i,j in b.items():
    print(f"{i}出现了{j}次")